package com.example.demo.base;

/**
 * 通用返回状态枚举类型
 * @author zixiaojun
 * @date 2018/11/12
 * @copyright Moli Teams
 */
public enum ComStatusCodeEnum implements StatusCode {

    COM_SUCCESS(10000,"success"),
    COM_YZ_SUCCESS(20000,"success业主登录"),
    COM_ERROR(11000,"系统异常"),
    ;

    private Integer code;

    private String message;

    private ComStatusCodeEnum(int coede, String message) {
        this.code = coede;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    }
